<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="Notification Number" name="description">
<title>Demo</title>
<style type="text/css">
html,body {
  background:transparent;
  font:normal bold 8px Tahoma,Verdana,Arial,Sans-Serif;
  color:white;
  text-align:center;
  text-transform:uppercase;
  margin:0 0;
  padding:0 0;
  overflow:hidden;
}
body {
  background-color:#900;
  line-height:15px; /* 65 x 15 */
  padding:1px 0 0;
  display:none;
}
a {
  color:white;
  text-decoration:none;
}
</style>
</head>
<body>
<div id="total"></div>
<script type="text/javascript">
function createCookie(name, value, days) {
        if (days) {
                var date = new Date();
                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                var expires = "; expires=" + date.toGMTString();
        } else {
                var expires = "";
        }
        document.cookie = name + "=" + value + expires + "; path=/";
}
function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
        }
        return null;
}
function eraseCookie(name) {
        createCookie(name, "", -1);
}

function getTotalComments(json) {
        if (readCookie('notification')) {
                createCookie('old-notification', parseInt(readCookie('notification'), 10), 7000);
                createCookie('notification', parseInt(readCookie('old-notification'), 10), 7000);
                console.log('Old notification: ' + readCookie('old-notification'));
        }
        var nowNotif = parseInt(json.feed.openSearch$totalResults.$t, 10);
        createCookie('notification', nowNotif, 7000);
        var currNotif = readCookie('notification') ? parseInt(readCookie('notification'), 10) : 0;
        if (readCookie('notification')) {
                console.log('New total: ' + readCookie('notification'));
                var total = parseInt(readCookie('notification'), 10) - parseInt(readCookie('old-notification'), 10);
                if (total > 0) {
                        document.body.style.display = "block";
                        document.getElementById('total').innerHTML = '<a href="http://kod-tutor.blogspot.com/p/notifikasi.html?notification='+total+'" target="_blank">' + total + ' Notifikasi</a>';
                }
        }
}
</script>
<script type="text/javascript" src="http://kod-tutor.blogspot.com/feeds/comments/default?redirect=false&amp;max-results=0&amp;alt=json-in-script&amp;callback=getTotalComments"></script>

</body>
</html>